package com.zhijian.medical.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author HCG
 * @version 1.0
 * @date 2022/9/29w
 */
@AllArgsConstructor
@Getter
public enum PersonTypeEnum {


    ZZYG(0, "在职员工", "BLK-PF-08-10", "A/1"),
    GPS(1, "规培生", "BLK-PF-08-015", "D/0"),
    JXS(2, "进修生", "BLK-PF-08-12", "D/0"),
    YJS(3, "研究生", "BLK-PF-016-013", "D/0"),
    FZRY(4, "辅助人员", "BLK-PF-08-11", "D/0"),
    ZXPXRY(5, "专项培训人员", "", ""),
    SXS(6, "实习生", "BLK-PF-08-14", "A/1"),
    LH(7, "轮换", "", ""),
    OTHER(8, "其他", "", "");

    private Integer code;
    private String msg;
    private String versionCode;
    private String version;

    public static PersonTypeEnum getByCode(Integer code) {
        PersonTypeEnum[] values = PersonTypeEnum.values();
        for (PersonTypeEnum anEnum : values) {
            if (anEnum.getCode().equals(code)) {
                return anEnum;
            }
        }
        return null;
    }
}
